<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<div class="right">
    <div class="location">
        <strong>当前位置:</strong>
        <span>角色管理页面</span>
    </div>
    <p><a href="${pageContext.request.contextPath}/role/toAdd">添加角色</a></p>
    <table border="1">
        <tr>
            <th>角色编码</th>
            <th>角色名称</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        <c:forEach var="r" items="${list}">
            <tr>
                <td>${r.code}</td>
                <td>${r.roleName}</td>
                <td>${r.createdTime}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/role/selectId?id=${r.id}"><img src="${pageContext.request.contextPath }/statics/images/view.png"/></a>
                    <a href="${pageContext.request.contextPath}/role/delete?id=${r.id}"><img src="${pageContext.request.contextPath}/statics/images/del.png"/></a>

                </td>
            </tr>
        </c:forEach>
    </table>
</div>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>

